package com.jdls.tanhua.web;

import com.jdls.tanhua.server.HuanxinServer;
import com.jdls.tanhua.vo.HuanXinUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 嘉德罗斯
 * @date 2021/10/30
 */
@RequestMapping("/huanxin")
@RestController
public class HuanxinWeb {

    @Autowired
    private HuanxinServer huanxinServer;


    //查询环信用户
    @GetMapping("/user")
    public ResponseEntity user(){
        HuanXinUserVo huanXinUserVo = huanxinServer.user();
        return ResponseEntity.ok(huanXinUserVo);
    }

}
